home *** CD-ROM | disk | FTP | other *** search
/ PC Play 128 / pc play 128.iso / Demo / xmr / xmr.exe / {app} / Shaders / ps / ps2_0_hdr_bright_pass.psh < prev    next >
Encoding:
Text File  |  2006-04-29  |  1.1 KB  |  50 lines

  1. //
  2. // Generated by Microsoft (R) D3DX9 Shader Compiler 9.04.91.0000
  3. //
  4. //   fxc /T ps_2_0 /DCGC=0 /Fc
  5. //    ..\..\WorkDir\Shaders\ps\ps2_0_hdr_bright_pass.psh
  6. //    ps2_0_hdr_bright_pass.cg
  7. //
  8. //
  9. // Parameters:
  10. //
  11. //   sampler2D $AdaptationMap;
  12. //   sampler2D $HDRMap;
  13. //   float4 $brightPassMul;
  14. //   float4 $brightPassSub;
  15. //   float4 $hdrKey;
  16. //
  17. //
  18. // Registers:
  19. //
  20. //   Name           Reg   Size
  21. //   -------------- ----- ----
  22. //   $hdrKey        c0       1
  23. //   $brightPassSub c1       1
  24. //   $brightPassMul c2       1
  25. //   $HDRMap        s0       1
  26. //   $AdaptationMap s1       1
  27. //
  28.  
  29.     ps_2_0
  30.     def c3, 0.5, 0.00100000005, 0, 0
  31.     dcl t0.xy
  32.     dcl_2d s0
  33.     dcl_2d s1
  34.     mov r0.xy, c3.x
  35.     texld r0, r0, s1
  36.     texld r1, t0, s0
  37.     add r0.w, r0.x, c3.y
  38.     rcp r0.w, r0.w
  39.     mul r0.w, r0.w, c0.x
  40.     mad r1.xyz, r1, r0.w, -c1
  41.     max r0, r1, c3.z
  42.     add r1.xyz, r0, c2
  43.     rcp r1.x, r1.x
  44.     rcp r1.y, r1.y
  45.     rcp r1.z, r1.z
  46.     mul r0.xyz, r0, r1
  47.     mov oC0, r0
  48.  
  49. // approximately 14 instruction slots used (2 texture, 12 arithmetic)
  50.